import requests from "./request";

//用户登录
export const reqUserLogin = (data) => requests({url:"/sys/user/login",method:'post',data})
//用户登出
export const reqUserLogout = (data) => requests({url:"/sys/user/logout",method:'post',data})

//新增酒席
export const reqBanquetAdd = (data) => requests({url:"/banquet",method:'post',data})
//获取酒席列表
export const reqBanquetPageList = (data) => requests({url:"/banquet/page",method:'get',params:data})
//获取酒席列表
export const reqBanquetList = (data) => requests({url:"/banquet/all",method:'get',params:data})
//酒席封存
export const reqBanquetSeal = (data) => requests({url:"/banquet/seal",method:'put',data})
//酒席解封存
export const reqBanquetUnSeal = (data) => requests({url:"/banquet/unSeal",method:'put',data})
//查询单个
export const reqBanquetById = (id) => requests({url:`/banquet/getById?id=${id}`,method:'get'})
//查询单个
export const reqBanquetWithSummaryById = (id) => requests({url:`/banquet/getByIdWithSummary?id=${id}`,method:'get'})

//新增宾客随礼
export const reqGiftMoneyAdd = (data) => requests({url:"/giftMoney",method:'post',data})
//获取宾客随礼列表
export const reqGiftMoneyPageList = (data) => requests({url:"/giftMoney/page",method:'get',params:data})
